package com.hxf.dao.meal.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hxf.dao.BaseDaoImpl;
import com.hxf.dao.meal.AreaDao;
import com.hxf.dto.AreaDto;
import com.hxf.exception.DaoLevelException;

@SuppressWarnings("unchecked")
@Repository("areaDao")
public class AreaDaoImpl extends BaseDaoImpl implements AreaDao{

	@Override
	public List<AreaDto> findByParentCode(String parentCode)
			throws DaoLevelException {
		return super.findBy("from AreaDto where parentCode="+ parentCode);
	}

}
